package cn.ml.gaoJi.api;

public class ToCharArrayDemo {
    public static void main(String[] args) {

        String myString="abcd";

        char myChar[]=myString.toCharArray();

        System.out.println("myChar[1]=" + myChar[1]);
        System.out.println(myChar[2] - 'a');
        String s = Character.toString((char) ((myChar[1] - 'a') % 2 + 'a'));
        System.out.println(s);

    }


}
